<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.prime.com.tr/ui"
                template="#{webContext.skin0Culomns}"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="center">
        <h:form id="addArticleForm">
            #{cmsArticleEdit.initArticle(param["p1"])}
            <h1 class="title ui-widget-header ">
                #{ml.tr('Edditing articles')}
            </h1>

            <ui:include src="formArticle.xhtml">Formulář článku</ui:include>

            <h:panelGrid columns="2" style="margin-top:10px">  
                <p:commandButton  value="#{ml.tr('Edit')}"
                                  image="ui-icon ui-icon-disk"
                                  actionListener="#{cmsArticleEdit.edit}" />
            </h:panelGrid>
        </h:form>
    </ui:define>

</ui:composition>
